<template>
  <div class="tab">
    <router-link tab="div" to="/recommend" class="tab-item">
      <span class="tab-link">推荐</span>
    </router-link>
    <router-link tab="div" to="/singer" class="tab-item">
      <span class="tab-link">歌手</span>
    </router-link>
    <router-link tab="div" to="/rank" class="tab-item">
      <span class="tab-link">排行</span>
    </router-link>
    <router-link tab="div" to="/search" class="tab-item">
      <span class="tab-link">搜索</span>
    </router-link>
  </div>
</template>
<script>
export default {
  
}
</script>
<style lang="stylus" scoped>

@import "~common/stylus/variable"

.tab
  display: flex
  width: 100%
  height: 44px
  font-size: $font-size-medium
  line-height: 44px
  .tab-item
    display: inline-block
    flex: 1
    text-align: center
    .tab-link
      padding-bottom: 5px
      color: $color-text-l
    &.router-link-active
        .tab-link
          color: $color-theme
          border-bottom: 2px solid $color-theme
</style>
